/* weapp */
page {
  background-color: #f8f8f8;
  font-size: 17px;
  box-sizing: border-box;
}

view,
form,
text,
button {
  box-sizing: border-box;
}

/* h5 */

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow-y: auto;
  height: 100%;
  line-height: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.taro_page {
  height: 100%;
  background-color: #f8f8f8;
  font-size: 17px;
}
* {
  box-sizing: border-box;
}

ul,
ol,
li {
  list-style: none;
}

a {
  text-decoration: none;
  &:hover {
    text-decoration: none;
  }
}

/*去除点击高亮*/
a,
button,
input {
  -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
}

input.focus,
textarea.focus,
button:focus {
  outline: none;
}

input.active,
textarea.active,
button:active,
button:visited {
  outline: none;
}

img {
  border-width: 0;
}

.clearfix:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  zoom: 1;
  overflow: hidden;
}

a:focus,
a:active {
  outline: 0;
  box-shadow: none;
  border: 0;
}

/*微软浏览器密码输入框内置眼睛图片*/
::-ms-clear,
::-ms-reveal {
  display: none;
}

/* ******************************************/
%px-media {
  @media (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 2.49) {
    &::before {
      transform: scaleY(0.5);
    }
  }

  @media (-webkit-min-device-pixel-ratio: 2.5) {
    &::before {
      transform: scaleY(0.33333);
    }
  }
}

/* border-top */
.boder-t1 {
  position: relative;
  &::before {
    position: absolute;
    box-sizing: border-box;
    content: " ";
    pointer-events: none;
    right: 0;
    top: 0;
    left: 0;
    border-top: 1px solid $border-color;
    transform: scaleY(0.5);
    transform-origin: top;
    @extend %px-media;
  }
}
/* border-bottom */
.border-b1 {
  position: relative;
  &::after {
    position: absolute;
    box-sizing: border-box;
    content: " ";
    pointer-events: none;
    right: 0;
    bottom: 0;
    left: 0;
    border-bottom: 1px solid $border-color;
    transform: scaleY(0.5);
    @extend %px-media;
  }
}

.border1 {
  position: relative;
  border: none;
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid $border-color;
    box-sizing: border-box;
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: left top;
    @media (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 2.49) {
      &::before {
        transform: scale(0.5);
      }
    }

    @media (-webkit-min-device-pixel-ratio: 2.5) {
      &::before {
        transform: scale(0.33333);
      }
    }
  }
}
